package com.emagic.manage.data.exception;

/**
 * 业务报错,对应4位错误码
 *
 * @author baoy
 * @version 1.0
 *          Create by 16/4/13 下午8:56
 */
public class BizException extends Exception{
    private final String code;
    private final String message;

    public BizException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public String code() {
        return code;
    }

    public String message() {
        return message;
    }
}
